package com.jk.interfaces;

import com.jk.dto.TbSubject;
import com.jk.pojo.PagedResponse;
import org.apache.ibatis.annotations.Delete;
import org.springframework.web.bind.annotation.*;

public interface TbSubjectServiceApi {

    @PostMapping(value = "/subject/findSubjectList")
    public PagedResponse<TbSubject> findSubjectList(@RequestBody TbSubject tbSubject, @RequestParam(value = "pageNum") Integer pageNum, @RequestParam(value = "pageSize") Integer pageSize);

    @GetMapping(value = "/subject/getSubjectById")
    public TbSubject getSubjectById(@RequestParam(value = "id") Integer id);

    @DeleteMapping(value = "/subject/delSubjectById")
    public void delSubjectById(@RequestParam(value = "id") Integer id);

    @PostMapping(value = "/subject/addSubject")
    public void addSubject(@RequestBody TbSubject tbSubject);

    @PostMapping(value = "/subject/upSubject")
    public void upSubject(@RequestBody TbSubject tbSubject);
}
